home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 426-450 / disk_429 / uedit-stuff / u.doc < prev    next >
Text File  |  1992-05-06  |  4KB  |  69 lines

  1.  
  2.    U is an Execute script which will load some files (up to five) into Uedit,
  3.    optionally marking them all read-only, optionally setting Uedit's current
  4.    directory to that where this command is given, starting Uedit if
  5.    necessary.  It works by calling the ARexx program called Ue-load.rexx,
  6.    which should be in your REXX: directory.  Or you can put it into ramdisk,
  7.    and change the last line of the U script to call ram:Ue-load instead of
  8.    rexx:Ue-load, if you want faster response.  Personally I put REXX: in
  9.    ramdisk to start with.  The actual contents of the script U are:
  10.  
  11. .key <*/s,r/s,c/s,aaaa,bbbb,cccc,dddd,eeee
  12. .bra {
  13. .ket }
  14. rx rexx:Ue-load {r}{c}/: {aaaa} /: {bbbb} /: {cccc} /: {dddd} /: {eeee} /::
  15.  
  16.    The rexx program Ue-load expects certain commands to be set up in Uedit's
  17.    REXXCOMM file.  One, of course, is LOADFILE.  Three more are CHANGEDIR,
  18.    READONLY, and optionally FRONTSCREEN.  To add them, put this in REXXCOMM:
  19.  
  20. changedir       1042+0 |
  21. readonly        396+0 |
  22. frontscreen     1041+0 |
  23.  
  24.    making sure that the number after readonly really is correct for setting
  25.    the current buffer read only in your config; 396 is shftAlt-f5.  (I use
  26.    ctl-r, macronum 435.)  Also add these two commands to your Config!R:
  27.  
  28. Rexx:  change Uedit's current directory
  29. <virtual-2:     changedir(buf61) >
  30.  
  31. Send Uedit's screen to the front
  32. <virtual-1:     execute(" ", "EndIf") >
  33.  
  34.    That's kind of a kludge but it works okay.  (I wonder when Uedit will have
  35.    a frontScreen function?)  NOTE:  For virtual-1 to work at all efficiently,
  36.    you must make C:Run resident and be using SetPatch from AmigaDOS 1.3.2, or
  37.    AmigaDOS 2.0 I suppose.  Otherwise it will load the Run program from disk
  38.    every time you call it.  You should do so anyway, because otherwise ANY
  39.    program that uses the AmigaDOS Execute() function to run other programs
  40.    will be very inefficient.  Also you should either make C:EndIf resident
  41.    and use AmigaShell (resident CLI L:Shell-Seg system), or copy the EndIf
  42.    program into ramdisk and change the command in the execute function above
  43.    to "ram:EndIf".  Or you could call it "ram:DoNothing" or something because
  44.    the endif program literally does nothing at all.  Otherwise it will load
  45.    C:Endif from disk.  With everything resident virtual-1 will run in about a
  46.    tenth of a second, moving Uedit's screen to the back and then back to the
  47.    front.  REMEMBER, EVEN IF YOU NEVER MAKE ANYTHING ELSE RESIDENT, DO make
  48.    C:Run resident, and use SetPatch 1.3.2, not any earlier version.
  49.  
  50.    You need one more thing for U to work:  RunBack.  The rexx script starts
  51.    Uedit by executing the command 'RunBack UE'.  You should change the
  52.    pathname from UE to wherever you keep your Uedit executable.  If you do
  53.    not have a RunBack program, I've written a very small one with no extra
  54.    features which is "pure" and only 488 bytes long.  It only works if you
  55.    mount the NULL: device, though.  It should be included with this, along
  56.    with the Null-Handler and its MountList entry.  NOTE that "Run >nil: <nil:
  57.    UE" is not a good substitute for RunBack.  The CLI window will be unable
  58.    to close until Uedit quits.
  59.  
  60.    That may seem like a lot of stuff to set up in your startup-sequence just
  61.    to get one little script to work ... Mount NULL:, Resident C:RunBack
  62.    (optional), Resident C:Run, SetPatch, Resident CLI L:Shell-Seg SYSTEM
  63.    (optional), Resident C:EndIf (optional), or Copy C:EndIf to RAM:DoNothing
  64.    (instead of the previous two), Copy rexx:Ue-load.rexx to RAM: (optional),
  65.    Copy S:U to RAM: (optional), Path RAM: ADD (optional), and of course
  66.    RexxMast ... but in my opinion there's not one step of that which is not
  67.    worth doing for its own sake anyway.  In my case I had done every one of
  68.    those already, except putting the U script in ram:.
  69.